/*---------------------------------------------------------------------------*/
/*  RegExp class :                                                           */
/*  Regular expressions by gogoprog @ gmail . com                            */
/*---------------------------------------------------------------------------*/
#ifndef REGEXP_H
#define REGEXP_H
/*---------------------------------------------------------------------------*/
#include <string>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <iostream>
#include <exception>
/*---------------------------------------------------------------------------*/
using namespace std;
/*---------------------------------------------------------------------------*/
class RegExp
{
	private:

	string				strRegExp;
	vector<void*>		vData;
	vector<char>		vType;
	
	
	public:

						RegExp(string regexp);
						~RegExp();

	bool				match( string source );

	void 				*getData(char i);
	int					getInt(char i);
	string				getString(char i);
	char				getChar(char i);				

	void				deleteData();
};
/*---------------------------------------------------------------------------*/
#endif
